Skip to content

server: Fix exception while update domain resource count (#3204)#3304

Closed
DaanHoogland wants to merge 2 commits intomasterfrom
reimplement3303on4.12
Closed

server: Fix exception while update domain resource count (#3204)#3304
DaanHoogland wants to merge 2 commits intomasterfrom
reimplement3303on4.12

Conversation

@DaanHoogland
Copy link
Contributor

@DaanHoogland DaanHoogland commented Apr 29, 2019

reimplement #3303 on moved file in 4.12
(should add the fix from #3204 to master)

Description

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):

How Has This Been Tested?

@DaanHoogland
Copy link
Contributor Author

@ustcweizhou , i redid your PR because it wouldn't fwd-merge.

@DaanHoogland DaanHoogland force-pushed the reimplement3303on4.12 branch from 1bb64e5 to 044429c Compare April 29, 2019 08:36
@ustcweizhou
Copy link
Contributor

@DaanHoogland ok. what about cherry-pick ?

@DaanHoogland
Copy link
Contributor Author

@ustcweizhou same conflict, this was quicker

@yadvr
Copy link
Member

yadvr commented Apr 29, 2019

@DaanHoogland you could have forward merged with this change?

@yadvr
Copy link
Member

yadvr commented Apr 29, 2019

@DaanHoogland can you also check the Travis failure, is this breaking anything?

@yadvr
Copy link
Member

yadvr commented Apr 29, 2019

@DaanHoogland @ustcweizhou the build fails due to:

/home/travis/build/apache/cloudstack/engine/schema/src/main/java/com/cloud/configuration/dao/ResourceCountDaoImpl.java:270:9: expecting SEMI, found 'try'
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (cloudstack-checkstyle) on project cloud-engine-schema: Failed during checkstyle configuration: Exception was thrown while processing /home/travis/build/apache/cloudstack/engine/schema/src/main/java/com/cloud/configuration/dao/ResourceCountDaoImpl.java: MismatchedTokenException occurred during the analysis of file /home/travis/build/apache/cloudstack/engine/schema/src/main/java/com/cloud/configuration/dao/ResourceCountDaoImpl.java. expecting EOF, found 'pstmt' -> [Help 1]

Please hold merging until build is fixed, thanks.


private long executeSqlCountComputingResourcesForAccount(long accountId, String sqlCountComputingResourcesAllocatedToAccount) {
try (TransactionLegacy tx = TransactionLegacy.currentTxn()) {
TransactionLegacy tx = TransactionLegacy.currentTxn()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DaanHoogland you missed ";" at the end of line 269.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@DaanHoogland
Copy link
Contributor Author

@rhtyd fwd-merge did not work due to the file being moved (out of git bounds)

@yadvr
Copy link
Member

yadvr commented May 23, 2019

@blueorangutan package

@blueorangutan
Copy link

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2751

@DaanHoogland
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@DaanHoogland
Copy link
Contributor Author

closing, setting git config global merge.renamelimit=5635 would have done the trick.

@blueorangutan
Copy link

Trillian test result (tid-3570)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 32226 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3304-t3570-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_ssvm.py
Smoke tests completed. 70 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants